.class public Lcom/waiqin365/lightapp/dailyreport/b/a/ah;
.super Lcom/waiqin365/lightapp/dailyreport/b/a/u;


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/lang/String;

.field public f:Lcom/waiqin365/lightapp/kehu/b/o;

.field public g:Lcom/waiqin365/lightapp/dailyreport/c/g;

.field private h:Lcom/waiqin365/lightapp/dailyreport/c/n;

.field private i:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/dailyreport/c/n;Ljava/util/ArrayList;)V
    .locals 1

    const/16 v0, 0xce

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/b/a/u;-><init>(I)V

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->i:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 11

    const/4 v1, 0x1

    const/4 v2, 0x0

    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    new-instance v3, Lcom/waiqin365/lightapp/kehu/b/o;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/kehu/b/o;-><init>()V

    iput-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    const-string/jumbo v3, "code"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string/jumbo v3, "code"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->a:Ljava/lang/String;

    :cond_0
    const-string/jumbo v3, "message"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string/jumbo v3, "message"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->b:Ljava/lang/String;

    :cond_1
    const-string/jumbo v3, "data"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_16

    const-string/jumbo v3, "data"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    const-string/jumbo v4, "upload_url"

    invoke-virtual {v0, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/kehu/b/o;->a:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    const-string/jumbo v4, "tenant_id"

    invoke-virtual {v0, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/kehu/b/o;->b:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    const-string/jumbo v4, "upload_handler"

    invoke-virtual {v0, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/kehu/b/o;->e:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    const-string/jumbo v4, "upload_dir"

    invoke-virtual {v0, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    const-string/jumbo v3, "blog"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_16

    new-instance v3, Lcom/waiqin365/lightapp/dailyreport/c/g;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/dailyreport/c/g;-><init>()V

    iput-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "blog"

    invoke-virtual {v0, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "id"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "publish_id"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->b:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "publish_name"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "2"

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->h:Ljava/lang/String;

    const-string/jumbo v0, "superior_id"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "superior_id"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->o:Ljava/lang/String;

    :cond_2
    const-string/jumbo v0, "publish_time"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "publish_time"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->g:Ljava/lang/String;

    :cond_3
    const-string/jumbo v0, "blog_type"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "blog_type"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    :goto_0
    const-string/jumbo v0, "blog_type_name"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "blog_type_name"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->k:Ljava/lang/String;

    :goto_1
    const-string/jumbo v0, "location_a"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "location_a"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->l:Ljava/lang/String;

    :goto_2
    const-string/jumbo v0, "comment_times"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "comment_times"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->m:Ljava/lang/String;

    :goto_3
    const-string/jumbo v0, "score"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "score"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->n:Ljava/lang/String;

    :goto_4
    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6}, Ljava/lang/StringBuffer;-><init>()V

    const-string/jumbo v0, ""

    const-string/jumbo v0, "content"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_a

    const-string/jumbo v0, "content"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    move-object v4, v0

    :goto_5
    :try_start_1
    const-string/jumbo v0, "model_value"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_e

    const-string/jumbo v0, "model_value"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    move-object v3, v0

    :goto_6
    const-string/jumbo v0, ""

    const-string/jumbo v0, ""

    move v0, v2

    :goto_7
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v7

    if-ge v0, v7, :cond_10

    invoke-virtual {v3, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    const-string/jumbo v8, "label"

    invoke-virtual {v7, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string/jumbo v9, "value"

    invoke-virtual {v7, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_4

    invoke-static {v8}, Lcom/waiqin365/lightapp/dailyreport/util/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v7

    add-int/lit8 v7, v7, -0x1

    if-ne v0, v7, :cond_f

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result v7

    if-eqz v7, :cond_f

    :cond_4
    :goto_8
    add-int/lit8 v0, v0, 0x1

    goto :goto_7

    :cond_5
    :try_start_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v3, v3, Lcom/waiqin365/lightapp/dailyreport/c/n;->f:Ljava/lang/String;

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    goto/16 :goto_0

    :catch_0
    move-exception v0

    move v0, v2

    :goto_9
    return v0

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v3, v3, Lcom/waiqin365/lightapp/dailyreport/c/n;->g:Ljava/lang/String;

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->k:Ljava/lang/String;

    goto/16 :goto_1

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v3, v3, Lcom/waiqin365/lightapp/dailyreport/c/n;->d:Ljava/lang/String;

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->l:Ljava/lang/String;

    goto/16 :goto_2

    :cond_8
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "0"

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->m:Ljava/lang/String;

    goto/16 :goto_3

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "0"

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->n:Ljava/lang/String;

    goto/16 :goto_4

    :cond_a
    new-instance v0, Ljava/lang/StringBuffer;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v3, v3, Lcom/waiqin365/lightapp/dailyreport/c/n;->a:Ljava/lang/String;

    invoke-direct {v0, v3}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    const-string/jumbo v3, "2"

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_b

    const-string/jumbo v3, "3"

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_b

    const-string/jumbo v3, "100"

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_b

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v4

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v7

    invoke-virtual {v7}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    invoke-virtual {v4, v7}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/db/offlinedata/m;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_b

    const-string/jumbo v4, "@%s"

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/Object;

    const/4 v8, 0x0

    aput-object v3, v7, v8

    invoke-static {v4, v7}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->indexOf(Ljava/lang/String;)I

    move-result v4

    if-gez v4, :cond_b

    const-string/jumbo v4, " "

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_b
    const-string/jumbo v3, "0"

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/n;->h:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_d

    const-string/jumbo v3, " #\u5168\u516c\u53f8\u53ef\u89c1"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_c
    :goto_a
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    move-object v4, v0

    goto/16 :goto_5

    :cond_d
    const-string/jumbo v3, "1"

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/n;->h:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_c

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v4

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v7

    invoke-virtual {v7}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    invoke-virtual {v4, v7}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/db/offlinedata/m;->i(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v3

    if-eqz v3, :cond_c

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v4

    invoke-virtual {v4}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-static {v4}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v4

    iget-object v3, v3, Lcom/waiqin365/lightapp/kehu/share/a/c;->g:Ljava/lang/String;

    invoke-virtual {v4, v3}, Lcom/waiqin365/base/db/offlinedata/m;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_c

    const-string/jumbo v4, " #"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    const-string/jumbo v4, "\u53ef\u89c1"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_a

    :cond_e
    :try_start_3
    new-instance v0, Lorg/json/JSONArray;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->h:Lcom/waiqin365/lightapp/dailyreport/c/n;

    iget-object v3, v3, Lcom/waiqin365/lightapp/dailyreport/c/n;->j:Ljava/lang/String;

    invoke-direct {v0, v3}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    move-object v3, v0

    goto/16 :goto_6

    :cond_f
    const-string/jumbo v7, "\n"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    goto/16 :goto_8

    :catch_1
    move-exception v0

    :cond_10
    :try_start_4
    invoke-virtual {v6, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->i:Ljava/lang/String;

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const-string/jumbo v0, "pictures"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_13

    const-string/jumbo v0, "pictures"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    move v0, v2

    :goto_b
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v6

    if-ge v0, v6, :cond_14

    invoke-virtual {v3, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    new-instance v7, Lcom/waiqin365/lightapp/dailyreport/c/k;

    invoke-direct {v7}, Lcom/waiqin365/lightapp/dailyreport/c/k;-><init>()V

    const-string/jumbo v8, "id"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v7, Lcom/waiqin365/lightapp/dailyreport/c/k;->a:Ljava/lang/String;

    const-string/jumbo v8, "info_id"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v7, Lcom/waiqin365/lightapp/dailyreport/c/k;->b:Ljava/lang/String;

    const-string/jumbo v8, "pic"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_11

    const-string/jumbo v8, "pic"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v7, Lcom/waiqin365/lightapp/dailyreport/c/k;->c:Ljava/lang/String;

    :cond_11
    const-string/jumbo v8, "pic_small"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_12

    const-string/jumbo v8, "pic_small"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v7, Lcom/waiqin365/lightapp/dailyreport/c/k;->d:Ljava/lang/String;

    :cond_12
    invoke-virtual {v4, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_b

    :cond_13
    move v3, v2

    :goto_c
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->i:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v3, v0, :cond_14

    new-instance v6, Lcom/waiqin365/lightapp/dailyreport/c/k;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/dailyreport/c/k;-><init>()V

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/k;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->a:Ljava/lang/String;

    iput-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/k;->b:Ljava/lang/String;

    const-string/jumbo v7, "%s/%s/%s"

    const/4 v0, 0x3

    new-array v8, v0, [Ljava/lang/Object;

    const/4 v0, 0x0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v9

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v10

    invoke-virtual {v10}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v10

    invoke-virtual {v9, v10}, Lcom/waiqin365/base/login/mainview/a;->m(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v8, v0

    const/4 v0, 0x1

    iget-object v9, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    iget-object v9, v9, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    aput-object v9, v8, v0

    const/4 v9, 0x2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->i:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/l;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/l;->a:Ljava/lang/String;

    aput-object v0, v8, v9

    invoke-static {v7, v8}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/k;->c:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuffer;

    iget-object v7, v6, Lcom/waiqin365/lightapp/dailyreport/c/k;->c:Ljava/lang/String;

    invoke-direct {v0, v7}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    const-string/jumbo v7, "."

    invoke-virtual {v0, v7}, Ljava/lang/StringBuffer;->lastIndexOf(Ljava/lang/String;)I

    move-result v7

    const-string/jumbo v8, "_small"

    invoke-virtual {v0, v7, v8}, Ljava/lang/StringBuffer;->insert(ILjava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Lcom/waiqin365/lightapp/dailyreport/c/k;->d:Ljava/lang/String;

    invoke-virtual {v4, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_c

    :cond_14
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    iput-object v4, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    const-string/jumbo v0, "publish_face"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_15

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "publish_face"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->d:Ljava/lang/String;

    :cond_15
    const-string/jumbo v0, "publish_small_face"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_17

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "publish_small_face"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->e:Ljava/lang/String;

    :goto_d
    const-string/jumbo v0, "face_time"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_16

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    const-string/jumbo v3, "face_time"

    invoke-virtual {v5, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->f:Ljava/lang/String;

    :cond_16
    move v0, v1

    goto/16 :goto_9

    :cond_17
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v3

    invoke-virtual {v3}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    const-string/jumbo v4, "cuslogin_mydata_data_pic"

    const-string/jumbo v6, ""

    invoke-static {v3, v4, v6}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->e:Ljava/lang/String;
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    goto :goto_d
.end method
